Conditional command buttons (shown on condition based on model values and/or invoking CUD operations programmatically)

您所在的位置:网站首页 command buttons Conditional command buttons (shown on condition based on model values and/or invoking CUD operations programmatically)

Conditional command buttons (shown on condition based on model values and/or invoking CUD operations programmatically)

#Conditional command buttons (shown on condition based on model values and/or invoking CUD operations programmatically)| 来源: 网络整理| 查看: 265

I need the ability to show or hide command buttons based on a row's property.

I am aware that I can just cancel commands, but in my opinion, a command button should not even be shown when the command can't or shouldn't be executed on a row.

Unfortunately, I was unable to find a way to access the "context" (the instance) in a TelerikGridCommandColumn the same way you're able to in a normal TelerikGridColumn.

---

ADMIN EDIT

You can Vote for and Follow this request for a follow up on providing the model as context to the command column: https://feedback.telerik.com/blazor/1461283-pass-the-model-context-to-command-button. At the moment, conditional command buttons are possible in a "normal" column through the grid state, the page above shows an example.

---



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3